
public class KeySpaceObject {
	int point;
	String slaveip;
	String port;
	String masterPort;
	
	public KeySpaceObject(KeySpaceObject a)
	{
		this.point = a.point;
		this.slaveip = new String(a.slaveip);
		this.port = new String(a.port);
		this.masterPort = new String(a.masterPort);
	}
	
	public KeySpaceObject(int p, String s,String port)
	{
		this.setPoint(p);
		this.setSlaveip(s);
		this.setPort(port);
	}
	
	public KeySpaceObject(int p, String s,String port,String masterport)
	{
		this.setPoint(p);
		this.setSlaveip(s);
		this.setPort(port);
		this.setMasterPort(masterport);
	}
	
	public String getMasterPort() {
		return masterPort;
	}

	public void setMasterPort(String masterPort) {
		this.masterPort = masterPort;
	}

	public String getPort() {
		return port;
	}

	public void setPort(String port) {
		this.port = port;
	}

	public int getPoint() {
		return point;
	}
	public void setPoint(int point) {
		this.point = point;
	}
	
	public String getSlaveip() {
		return slaveip;
	}
	public void setSlaveip(String slaveip) {
		this.slaveip = slaveip;
	}
	
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.getSlaveip() + ":" + this.getPoint();
	}
	
	
}
